//
//  CustomHomeNaviButton.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/20.
//  Copyright © 2018年 guoshikeji. All rights reserved.
//

#import "CustomHomeNaviButton.h"

@implementation CustomHomeNaviButton

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.layer.anchorPoint = CGPointMake(1, 0.5);
        self.customTitleLabel = [UILabel new];
        self.customTitleLabel.textAlignment = NSTextAlignmentCenter;
        self.customTitleLabel.font = [UIFont systemFontOfSize:11 weight:UIFontWeightRegular];
        self.customTitleLabel.textColor = [UIColor whiteColor];
        self.customTitleLabel.adjustsFontSizeToFitWidth = true;
        [self addSubview:self.customTitleLabel];
        [self.customTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(self.imageView.mas_bottom).offset(3.0);
            make.centerX.mas_equalTo(self);
            make.width.mas_equalTo(self.imageView).offset(15.0);
        }];
    }
    return self;
}

@end
